backgroundColor

Returns a command that allows setting the given background color for the selected text in a WYSIWYG editor.

Parameters

color

a new background color


open fun backgroundColor(colorName: String): EditorCommand

Returns a command that allows setting the given background colorName for the selected text in a WYSIWYG editor.

Parameters

colorName

a new background color name

Throws

when colorName is empty or blank